package com.itmayiedu.api.controller;

import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @description: 订单服务接口
 * @author: liucancan
 * @create: 2018-11-03 17:54
 **/
@RestController
public class OrderSwaggerController {

    @Value("${server.port}")
    private int port;

    @ApiOperation("订单项目测试接口")
    @ApiImplicitParam(name = "userName", value = "用户信息名称", required = true, type = "String")
    @GetMapping("/orderSwagger")
    public String orderSwagger(String userName) {
        return userName;
    }
}
